import { Dimensions } from "@sapi-game/constants";
import { GameContext } from "@sapi-game/gameContext";
import { monopolyModule } from "./moudle";
import { MonopolyCountdownState } from "./states/waitingState";

export class MonopolyGame extends monopolyModule.Engine {
    protected override buildContext(): GameContext {
        return new GameContext();
    }
    override onStart(): void {
        this.pushState(MonopolyCountdownState);
    }

    override onStop(): void {
        Dimensions.Overworld.runCommand("function dfw/end");
    }
}
